package com.tledu.schedulingInfo.domain;

import com.tledu.common.annotation.Excel;
import com.tledu.common.core.domain.BaseEntity;
import com.tledu.schedulingInfo.domain.dto.SchedulingItemDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 排班管理对象 scheduling_info
 * 
 * @author ruoyi
 * @date 2024-09-07
 */
public class SchedulingInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private Long id;

    /** 排班名称 */
    @Excel(name = "排班名称")
    private String name;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 创建者(申请人) */
    @Excel(name = "创建者(申请人)")
    private Long createUser;

    /** 更新者 */
    private Long updateUser;

    /** 紧急程度:0代表一级,1代表二级,2代表三级 */
    private Long urgency;

    /** 附件 */
    private String accessory;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    /** 排班明细信息 */
    private List<SchedulingItemDTO> schedulingItemList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setCreateUser(Long createUser) 
    {
        this.createUser = createUser;
    }

    public Long getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Long updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Long getUpdateUser() 
    {
        return updateUser;
    }
    public void setUrgency(Long urgency) 
    {
        this.urgency = urgency;
    }

    public Long getUrgency() 
    {
        return urgency;
    }
    public void setAccessory(String accessory) 
    {
        this.accessory = accessory;
    }

    public String getAccessory() 
    {
        return accessory;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }

    public List<SchedulingItemDTO> getSchedulingItemList()
    {
        return schedulingItemList;
    }

    public void setSchedulingItemList(List<SchedulingItemDTO> schedulingItemList)
    {
        this.schedulingItemList = schedulingItemList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("deptId", getDeptId())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .append("urgency", getUrgency())
            .append("accessory", getAccessory())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("schedulingItemList", getSchedulingItemList())
            .toString();
    }
}
